package car.aistar.controller;

import car.aistar.entity.CarStyle;
import car.aistar.service.CarStyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * (CarStyle)表控制层
 *
 * @author makejava
 * @since 2020-09-30 20:20:55
 */
@RestController
@RequestMapping("carStyle")
public class CarStyleController {
    /**
     * 服务对象
     */
    @Autowired
    private CarStyleService carStyleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CarStyle selectOne(Long id) {
        return this.carStyleService.queryById(id);
    }

}